<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/12
  Time: 11:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>添加学生业务</h1>

<form action="/stu/add.do" method="post">
    <!--这里上参数不要多此一举添加形参名称-->
    <!--
    这里是错误的，直接属性名称即可，属性名称需要于对象的属性名称对应上即可
    <p>id:<input name="stu.id" type="text"></p>
    -->

    <p>id:<input name="id" type="text"></p>
    <p>name:<input name="name" type="text"></p>
    <p>sex:<input name="sex" type="text"></p>
    <p><button  type="submit">按钮</button></p>
</form>

</body>
</html>
